package com.android.advertising;

import java.util.Comparator;

public class ArticleComparator implements Comparator<Article> {
	public int compare(Article c1, Article c2) {
		long delta = c2.getCreatedTime() - c1.getCreatedTime();
		if (delta > 0)
			return 1;
		else if (delta == 0)
			return 0;
		else
			return -1;
	}
};
